vue

您所在的位置:网站首页 npm install 安装报错 vue

vue

2024-07-10 13:02| 来源: 网络整理| 查看: 265

npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/nhn/raphael.git npm ERR! [email protected]: Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\17605\AppData\Local\npm-cache\_logs\2022-03-21T10_41_46_956Z-debug.log

网上也是看了好多文章,尝试了好几种办法,修改.gitconfig文件,配置过tb镜像,也重新配置过GitHub的ssh,还是未能解决,最后看见一篇直接删除依赖的,删除完了就解决了。

具体如下:

1、打开package.json把"tui-editor"删掉

2、删除"tui-editor"相关路由、components,具体文件地址如下:

路由位置:

        src/router/modules/components.js 搜索"markdown",把相应markdown路由代码删除;

components位置:

        src/components/MarkdownEditor 删除后,再执行npm install 或 npm install --registry=registry.npm.taobao.org 下载并运行成功!

3、启动项目 npm run dev

 附:

Github地址: https://github.com/PanJiaChen/vue-element-admin



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3